<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>alert</title>
	<script type="text/javascript">
		var name =prompt('姓名');
			document.write(name);
		var password =prompt('密码');
			document.write(password);
		var sex=prompt('性别');
			if(sex=="男"){
				document.write('您好先生');
			}else{
				document.write('您好女士');
			}
		var age=prompt('年龄');
			if(age<18){
			document.write('未成年');	
			}else if(age<30){
				document.write('青年');
			}else if(age<50){
				document.write('中年');
			}else{
				document.write('老年');
			}
		var place=prompt('所在地');
			switch(place){
				case'g':document.write('广州');
				 break;
				case'z':document.write('珠海');
				 break;
				case'f':document.write('佛山');
				 break;
				case's':document.write('汕头');
				 break;
				default:document.write('你在哪里');
			}
		var place=prompt('所在地');
			document.write(place);
		var code=prompt('验证码');
			document.write(code);
		var number=prompt('手机号');
			document.write(number);
		var submit=prompt('提交注册');
			alert(submit);
	</script>
</head>
<body>
	
</body>
</html>